<?php

/*Multidimensional array*/
$family = array
	(
	"Griffin" => array("Megan","Chris","Peter"),
	"Simpsons" => array("Homer","Bart","Lisa")
	);
echo "Is ".$family['Simpsons'][1]." a member of the Simpsons family?"."<br />";

/*Read from file, line by line*/
$file = fopen("file",'r') or exit("Unable to open file.");
while(!feof($file))
{
	echo fgets($file)."<br/>";
}
fclose($file);

/*Read from file, character by character*/
$file = fopen("file",'r') or exit("Unable to open file.");
while(!feof($file))
{
	echo fgetc($file);
}
fclose($file);
?>
